package com.example.daiyinuo.decorator;

public class Decorator1 extends Decorator{

    public Decorator1(IProduct product, String name) {
        super(product, name);
    }

    public Decorator1(IProduct product){
        this.product = product;
        this.name ="塑料泡沫";
    }

    public void transport(){
        System.out.println("用"+this.name+"包装");
        if(this.product != null)
            this.product.transport();
    }
}
